package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.FileRenameItem;
import com.wanlian.netty.msg.MsgType;

/**
 * 文件rename
 */
public class FileRenameReqMsg extends BaseMsg {
    private FileRenameItem item;

    public FileRenameReqMsg(){
        super();
        this.setType(MsgType.DEVICE_STORAGEITEM_RENAME_REQ);
    }

    public FileRenameItem getItem() {
        return item;
    }

    public void setItem(FileRenameItem item) {
        this.item = item;
        this.setContent(JsonStringUtil.writeValueAsString(item));
    }
}
